package com.Jano.dao.Impl;

import com.Jano.dao.CategoryDao;
import com.Jano.entity.Category;
import org.junit.Test;

import java.util.List;

/**
 * description: CategoryDaoImpl <br>
 * date: 2022/6/10 11:43 PM <br>
 * author: zoumaoji <br>
 * version: 1.0 <br>
 */
public class CategoryDaoImpl extends AbstractDaoImpl implements CategoryDao {
    @Override
    public List<Category> selectAllCategories() {
        return queryForList("select c.id,c.parentid parentId,c.name from category c",Category.class);
    }
}
